package com.welab.task3.dao;

import com.welab.task3.entity.User;
import java.util.List;
import org.apache.ibatis.annotations.Param;

/**
 * @author dammein.yuan
 * @version v1.0
 * @Title: com.welab.task3.dao
 * @Description: 用户 dao 层接口
 * @Copyright: © 2020 ***
 * @Company: ***有限公司
 * @date 2020-3-9
 */
public interface UserMapper {

    int deleteByUserId(Integer id);

    int insert(User user);

    List<User> selectAll();

    int update(User user);

    User selectByNameAndPwdAndType(@Param("name") String name, @Param("password") String password, @Param("type") Integer type);
}
